package com.etc.entity;

import java.io.Serializable;

/**
 * 
 * @ClassName: Goods
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author knowno
 * @date 2022年3月4日 上午9:22:17
 * @version 1.0
 *
 */
public class Goods implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int goodsid;
	private String goodsname;
	private double goodsprice;
	private String goodsinfo;
	private int goodscount;
	private String cover;
	private int typeid;// ?
	private int shopid;
	private int goodsstate;

	public int getTypeid() {
		return typeid;
	}

	/****************************************/
	// 商品一端加入一个类型（表示这个商品属于哪个类型）
	private GoodsType goodstype = new GoodsType();

	public GoodsType getGoodstype() {
		return goodstype;
	}

	public void setGoodstype(GoodsType goodstype) {
		this.goodstype = goodstype;
	}

	public void setTypeid(int typeid) {
		this.goodstype.setTypeid(typeid);
	}

	public void setTypename(String typename) {
		this.goodstype.setTypename(typename);
	}

	public void setTypeinfo(String typeinfo) {
		this.goodstype.setTypeinfo(typeinfo);
	}

	/****************************************/
	
	private String shopname;
	

	public String getShopname() {
		return shopname;
	}

	public void setShopname(String shopname) {
		this.shopname = shopname;
	}
	
	/****************************************/
	public int getGoodsid() {
		return goodsid;
	}

	public void setGoodsid(int goodsid) {
		this.goodsid = goodsid;
	}

	public String getGoodsname() {
		return goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	public double getGoodsprice() {
		return goodsprice;
	}

	public void setGoodsprice(double goodsprice) {
		this.goodsprice = goodsprice;
	}

	public String getGoodsinfo() {
		return goodsinfo;
	}

	public void setGoodsinfo(String goodsinfo) {
		this.goodsinfo = goodsinfo;
	}

	public int getGoodscount() {
		return goodscount;
	}

	public void setGoodscount(int goodscount) {
		this.goodscount = goodscount;
	}

	public String getCover() {
		return cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public int getShopid() {
		return shopid;
	}

	public void setShopid(int shopid) {
		this.shopid = shopid;
	}

	public int getGoodsstate() {
		return goodsstate;
	}

	public void setGoodsstate(int goodsstate) {
		this.goodsstate = goodsstate;
	}

	@Override
	public String toString() {
		return "Goods [goodsid=" + goodsid + ", goodsname=" + goodsname + ", goodsprice=" + goodsprice + ", goodsinfo="
				+ goodsinfo + ", goodscount=" + goodscount + ", cover=" + cover + ", " + "shopid=" + shopid
				+ ", goodsstate=" + goodsstate + ",goodstype = " + goodstype + "]";
	}

	public Goods(int goodsid, String goodsname, double goodsprice, String goodsinfo, int goodscount, String cover,
			int typeid, int shopid, int goodsstate) {
		super();
		this.goodsid = goodsid;
		this.goodsname = goodsname;
		this.goodsprice = goodsprice;
		this.goodsinfo = goodsinfo;
		this.goodscount = goodscount;
		this.cover = cover;

		this.shopid = shopid;
		this.goodsstate = goodsstate;
	}

	public Goods(String goodsname, double goodsprice, String goodsinfo, int goodscount, String cover, int typeid,
			int shopid, int goodsstate) {
		super();
		this.goodsname = goodsname;
		this.goodsprice = goodsprice;
		this.goodsinfo = goodsinfo;
		this.goodscount = goodscount;
		this.cover = cover;

		this.shopid = shopid;
		this.goodsstate = goodsstate;
	}

	public Goods() {
		// TODO Auto-generated constructor stub
	}

	public Goods(int goodsid, String goodsname, double goodsprice, String goodsinfo, int goodscount, String cover,
			int typeid2, String shopname) {
		this.goodsid = goodsid;
		this.goodsname = goodsname;
		this.goodsprice = goodsprice;
		this.goodsinfo = goodsinfo;
		this.goodscount = goodscount;
		this.cover = cover;
	}

}
